//
//  HSYBaseQRCodeViewController.h
//  高仿暴走斗图
//
//  Created by key on 16/3/23.
//  Copyright © 2016年 huangsongyao. All rights reserved.
//

#import "HSYBaseViewController.h"
#import "HSYQRCodeJSONModel.h"

@protocol HSYBaseQRCodeViewControllerDelegate <NSObject>

- (void)didOutputMetadataObject:(NSString *)object;

@end

@interface HSYBaseQRCodeViewController : HSYBaseViewController

//@property (nonatomic, strong) NSString *qrCodeString;                   //缓存二维码相机扫描获取的数据,子类中对本属性进行了监听,请勿更改属性名，如果更改请记得同时更改监听属性
@property (nonatomic, assign, readonly) CGRect boxRect;                 //只读，扫描框的rect
@property (nonatomic, strong, readonly) UIView *boxView;                //只读，开放截取框
@property (nonatomic, strong) HSYQRCodeJSONModel *qrJSONModel;          //开放JSONModel的bean

@property (nonatomic, weak) id<HSYBaseQRCodeViewControllerDelegate>delegate;

/**
 *  开放 开启扫描动画的方法
 */
- (void)starScanningAnimation;
/**
 *  开放 移除扫描动画的方法
 */
- (void)stopScanningAnimation;

/**
 *  开放  启动二维码相机的扫描
 */
- (void)startRunning;

/**
 *  开放  关闭二维码相机的扫描
 */
- (void)stopRunning;

@end
